home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / Autoscroller$AutoScrollTimerAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.4 KB  |  26 lines

  1. package javax.swing;
  2.  
  3. import java.awt.Point;
  4. import java.awt.event.ActionEvent;
  5. import java.awt.event.ActionListener;
  6. import java.awt.event.MouseEvent;
  7.  
  8. class Autoscroller$AutoScrollTimerAction implements ActionListener {
  9.    // $FF: synthetic field
  10.    private final Autoscroller this$0;
  11.  
  12.    Autoscroller$AutoScrollTimerAction(Autoscroller var1) {
  13.       this.this$0 = var1;
  14.    }
  15.  
  16.    public void actionPerformed(ActionEvent var1) {
  17.       if (this.this$0.component.isShowing() && this.this$0.event != null) {
  18.          Point var2 = this.this$0.component.getLocationOnScreen();
  19.          MouseEvent var3 = new MouseEvent(this.this$0.component, this.this$0.event.getID(), this.this$0.event.getWhen(), this.this$0.event.getModifiers(), this.this$0.event.getX() - var2.x, this.this$0.event.getY() - var2.y, this.this$0.event.getClickCount(), this.this$0.event.isPopupTrigger());
  20.          this.this$0.component.superProcessMouseMotionEvent(var3);
  21.       } else {
  22.          this.this$0.stop();
  23.       }
  24.    }
  25. }
  26.